<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>第一个Vue程序</title>
</head>
<body>
    {{msg}}
    <div id="app">
        <!-- {{ key }} 插值表达式 -->
        <h1>{{msg}}</h1>
        <h2 style="color: cadetblue;">{{stus.name}} - {{stus.age}}</h2>
        <ul>
            <li>{{arrays[0]}}</li>
            <li>{{arrays[1]}}</li>
            <li>{{arrays[2]}}</li>
        </ul>
    </div>
</body>
<!-- 引入vue.js -->
<script src="./js/vue.js"></script>
<script>
    new Vue({
        el:"#app",  //1.挂载点
        data:{      //2.数据
            msg:"hello vue",
            stus:{
                name:"张三",
                age:18
            },
            arrays:['aaa','bbb','ccc']
        },
        methods:{   //3.方法
            
        }
    })
</script>  
</html>